<%= title @activity.title, :class => @activity.completed_at ? "strike" : "" %>

<%= simple_format h(@activity.description) unless @activity.description.nil? %>

<%= render "comments/list", :commentable => @activity %>

<% form_for [@project, @activity], :html => {:class => "basic-form rounded"} do |form| %>

	<fieldset>
		<legend><%= t :change, :scope => :activity %></legend>
	
		<dl>
			<dd class="hint"><%= t :hint, :scope => [:activity, :complete] %></dd>
			<dd><%= form.check_box :complete_activity %> <b><%= form.label :complete_activity, t(:label, :scope => [:activity, :complete]) %></b></dd>
		</dl>
		
		<% form.fields_for :activity_comment do |comment_form| %>
			<dl>
				<dt><%= comment_form.label :body, t(:label, :scope => [:activity, :comment]) %></dd>
				<dd class="hint"><%= t :hint, :scope => [:activity, :comment] %></dd>
				<dd>
					<%= comment_form.text_area :body, :rows => 10, :cols => 30, :style => "width: 99%" %>
				</dd>
			</dl>
		<% end %>
		
		<%= awesome_submit_button t(:change, :scope => :activity), :edit %>
	
	</fieldset>

<% end %>

<% content_for :subtabs do %>
	<%= render "activities/navigation/show_subtabs" %>
<% end %>